package com.geekhalo.admin.domain.user.changePassword;

import com.geekhalo.admin.domain.user.changePassword.ChangePasswordCommand; 
import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@Data
public class ChangePasswordContext{
    private ChangePasswordCommand command;

    private ChangePasswordContext(ChangePasswordCommand command){
         this.command = command;
    }

    public static ChangePasswordContext apply(ChangePasswordCommand command) {
        ChangePasswordContext context = new ChangePasswordContext(command);
        return context;
    }
}
